<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="px" uri="/WEB-INF/tld/pex.tld"%>
<%@ taglib prefix="c" uri="/WEB-INF/tld/c.tld"%>
<%@ taglib prefix="fn" uri="/WEB-INF/tld/fn.tld"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>温江人大代表之家</title>
<link href="<%=path%>/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=path%>/js/main.js"></script>
<script type="text/javascript" src="<%=path%>/js/pex.js"></script>
<script type="text/javascript" src="<%=path%>/js/jquery1.4.2.js"></script>
<script type="text/javascript">
 $(function(){
	 //新闻名称加载
	     var path = document.getElementById("path").value+"/";
	     var pid=$("#pidhid").val();
	    		 $.post("<%=path%>/selectchannel/selectChannel.do",{pid:pid},function(data){
	  		      
	  		          if(data!=null&&data.length>0){
	  		          var html="<tr>";
    		           $(data).each(function(i){
    		        	   if(i!=0&&i%4==0){
    		        		   html=html+"</tr><tr><td style='background-color:#ffd8d8; border:1px solid #FF6600;' align='center' height='30px;'><a href='"+path+"zhengymquery/initIndex.do?pid="+this.pid+"' style='font-size:15px;'  target='_blank'>"+this.name+"</a></td>";
    		        	   }else{
    		        		   html=html+"<td style='background-color:#ffd8d8; border:1px solid #FF6600;' align='center' height='30px;'><a href='"+path+"zhengymquery/initIndex.do?pid="+this.pid+"' style='font-size:15px;'  target='_blank'>"+this.name+"</a></td>";
    		        	   }
    		           });
    		           html=html+"</tr>";
    		          $("#xwmcquery").html(html);
	  		          }
		   			},"json");
 });
</script>
</head>
<body>
<div id="header">
  <iframe src="<%=path%>/query/header.do" width="100%" height="337" frameborder="0" scrolling="no" name="header"></iframe>
</div>
<div id="content">
  <table border="0" align="center" cellpadding="0" cellspacing="0" style="margin-bottom:7px">
    <tr>
      <td width="970" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td class="sailBox_title"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td class="sailBox_title_txt">基层专栏</td>
              <td class="sailBox_title_more">&nbsp;</td>
            </tr>
          </table></td>
        </tr>
        <tr>
      <td valign="top" class="sailBox_cont" style="padding:5px"><table width="90%" border="0" align="center" cellpadding="0" cellspacing="10">
                  <tbody id="xwmcquery"></tbody>
          </table>
            <table width="90%" border="0" align="center" cellpadding="0" cellspacing="15">
              <tr>
                <td align="center"><img src="<%=path %>/images/btn_back.gif" width="60" height="22" onclick="javascript:history.back();" /></td>
                </tr>
            </table></td>
        </tr>
      </table></td>
    </tr>
  </table>
</div>
<!-- 栏目pid -->
<input type="hidden" value="${channel.pid}"  id="pidhid"/>
<input type="hidden" value="<%=path%>" id="path"/>
<div style="text-align:center">
<iframe src="<%=path%>/query/footer.do" width="970px" height="100" frameborder="0" scrolling="no" name="footer"></iframe>
</div>
</body>
</html>